#pragma once

#include <string>
#include <iomanip>
#include <stdlib.h>
#include "command.h"
using namespace std;

int getParam(string&);
int parse(string& path, Inode* stand, Inode* temp);
int findName(Inode*, string);
//int findDir(Inode*, string);
int listInfo(Inode*);

int getAvaiInode();
int getAvaiData();

int buildInode(Mode, Type, int,string);
void addEntry(Inode*, Entry*);



string typeToStr(Type);
string modeToStr(Mode);

//sxl:

//void receive(string);
int findInode(Inode*, string);
int deleteEntry(Inode *, string);
int deleteInode(Inode *);
void releaseData(int );
void releaseInode(int);
void fillblock(int);

void cpdata(int ,int );
